var nQuery = function (selector, context) {
    return new nQuery.prototype.foo(selector, context)
}

nQuery.prototype = {
    foo: function () {
        //nothing
    },
    bad: function () {
        console.log("我是方法二")
    },
    good: function () {
        console.log("我是方法三")
    }
}

nQuery.prototype.foo.prototype = nQuery.prototype

window.$ = window.nQuery = nQuery



